<script lang="tsx">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'VirtualEditableTableColumn',
  props: {
    field: {
      type: String,
      required: true
    },
    title: {
      type: String,
      default: ''
    },
    width: {
      type: [Number, String],
      default: 'auto'
    },
    minWidth: {
      type: Number,
      default: 100
    },
    sortable: {
      type: Boolean,
      default: false
    },
    editable: {
      type: Boolean,
      default: true
    },
    editRender: {
      type: Object,
      default: () => ({})
    }
  },
  setup(props, { slots }) {
    // 这个组件主要用于配置，实际渲染由父组件处理
    return () => null
  }
})
</script>
